package com.sunni.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/user")
public class UserController {
    @RequestMapping(value = "/save",method = RequestMethod.GET,params = {"name"})
    public String save(){
        System.out.println("Controller save running...");
        return "success";
//        return "redirect:/success.jsp";/*重定向到success.jsp，别忘了在webapp下建一个success.jsp*/
    }
}
